import { createRouter,createWebHashHistory } from 'vue-router'
import { CONFIG } from '../config/index.js'
import rebuildRoutes from './rebuild.js'
import checkRoutes from './check.js'

const Login = () => import('../view/Login.vue')
const Layout = ()=>import ('../view/layout/Layout.vue')

const routes = [
    rebuildRoutes,
    checkRoutes,

    {
        path: "/login",
        component: Login,
    },
    {
        path: "/",
        component: Layout
    },
]

const router = createRouter({
    history:createWebHashHistory(),
    routes,
})

export default router